<?php

if( !isset($_SESSION['login']) || (strcmp($_SESSION['type_compte'],'enseignant') != 0))
{
  echo "<div class='contenu_haut'>.: Erreur Identification :.</div><div class='contenu_fond'>";
  echo "<div class='erreur_div'>Vous devez être identifié</div>";
  echo "</div><div class='contenu_bas'></div>";
}
else
{

?>

<div class="contenu_haut">.: Creation d'atelier :.</div><div class="contenu_fond"> <!--  News -->
<div id="error_form"></div>
<div class="form_ajout_atelier" >
		<table>
			<tr>
				<td><h3>Nom de l'atelier</h3></td>
				<td><input type="text" name="nom" id="nom_atelier"/></td>
			</tr>
			<tr>
				<td><h3>Description</h3></td>
				<td><TEXTAREA rows="5" cols="25" name="desc" id="desc_atelier"></TEXTAREA></td>
			</tr>
      <tr>
        <td><h3>Consigne de sécurité</h3></td>
        <td><TEXTAREA rows="5" cols="25" name="securite" id="consigne_securite"></TEXTAREA></td>
      </tr>
			<tr>
			    <td></td>
				<td><input type="button" name="submit" value="Creer Atelier" onClick="javascript:ajout_atelier()" id="create"></td>
			</tr>
		</table>
</div>	
</div>
<div class="contenu_bas"></div><!--  Fin News --> 

<div class="contenu_haut">.: Ajout de muscles :.</div><div class="contenu_fond"> <!--  News -->

<div class="form_ajout_atelier" id="div_muscle">
	<table id="insertion">
		<tr>
			<td>
				<SELECT name="type0" disabled="true" id="type_m0" onChange="javascript:liste_muscle()">
					<OPTION VALUE="muscle">Muscle</OPTION>
					<OPTION VALUE="groupe_musculaire">Groupe Musculaire</OPTION>	
				</SELECT>
			</td>
			
			<td>
				<SELECT name="liste0" disabled="true" id="liste_m0">
					
				</SELECT>
			</td>
			
			<td>
				<input type="button" name="add0" value="Ajouter" disabled="true" id="ajout0" onClick="javascript:ajouter_champs_muscle()"/>
			</td>
		</tr>
		</table>
	<table>
		<tr>
			<td width=50></td>
			<td width=50></td>
			<td><input type="button" name="end" value="Valider" id="end" disabled="true" onClick="javascript:fin_ajout_muscle()"/></td>
		</tr>
	</table>
	</div>	

</div>

<div class="contenu_bas"></div><!--  Fin News --> 

<?php
} // Balise de fermeture du check_session
?>
